import base from '@/api/base.js';
import http from '@/request/http.js';


const SystemUser = {
    register() {
        return http.post(`${base.context}/open/user/register`, body);
    },
    login(body) {
        return http.post(`${base.context}/open/user/login`, body);
    },
    loginOut() {
        return http.post(`${base.context}/open/user/loginOut`);
    },
    currentUserInfo() {
        return http.post(`${base.context}/open/user/currentUserInfo`);
    },
    activate(body) {
        return http.post(`${base.context}/open/user/activate`, body);
    },

}

export default SystemUser;